<?php

function view_anggota($photo, $fb, $name, $phone, $email, $major) {
	$name = (strlen($name)>0) ? $name : "-";
	$phone = (strlen($phone)>0) ? $phone : "-";
	$email = (strlen($email)>0) ? $email : "-";
	$major = (strlen($major)>0) ? $major : "-";
    ?>

<p>
    <a href="http://facebook.com/<?php echo $fb; ?>" target="_blank"><img class="anggota-foto" src="<?php echo $photo; ?>" alt="<?php echo htmlentities($name); ?>"></a>
</p>
<p class="anggota-nama">
    <?php echo htmlentities($name); ?>
</p>
<hr class="dotted">
<p>
    <?php echo htmlentities($phone); ?>
</p>
<hr class="dotted">
<p>
    <?php echo htmlentities($email); ?>
</p>
<hr class="dotted">
<p>
    <?php echo htmlentities($major); ?>
</p>

    <?php
}
